package com.squirrel.service;

import java.util.List;
import java.util.Map;
import java.util.TooManyListenersException;

/**
 * @author wangyan
 */
public interface ICreateSelectSql {

    String getDistinct();

    void setDistinct();

    String getCount();
    void setCount();

    void setQueryFields(String... fields);

    String[] getFields();

    void setQueryTable(String _tableName);

    String getTableName();

    String getOrderbyField();

    void setOrderbyField(String orderbyField);

    String getOrderbyColline();

    void setOrderbyColline(String orderbyColline) throws TooManyListenersException;

    /**
     * @param joinType      关联类型
     * @param joinTableName 关联的表名称
     */
    void setJoin(String joinType, String joinTableName);

    List<Map<String, String>> getJoinTable();

    void setOn(String a, String b);

    List<Map<String, String>> getOn();


}
